package com.zuijin.demo.model;

import lombok.*;
import lombok.experimental.Accessors;
import com.mybatisflex.core.activerecord.Model;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

/**
 * 学生表 实体类。
 *
 * @author zuijin
 * @since 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data(staticConstructor = "create")
@Builder
@Table(value = "student")
public class Student extends Model<Student> {

    @Id(keyType = KeyType.Auto)
    private Integer id;

    @Column(value = "name")
    private String name;

    @Column(value = "gender")
    private Integer gender;

    @Column(value = "age")
    private Integer age;


}
